package com.gkr.shopping.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.gkr.shopping.bean.Article;
import com.gkr.shopping.pager.PageModel;

public interface ArticleMapper {

	List<Article> findAllArticle(@Param("typeCode")String typeCode,@Param("keyword")String keyword, @Param("pageModel")PageModel pageModel);

	@Select("select * from ec_article where id = #{id}")
	Article getArticleById(Integer id);
	
	int findTotalNum(@Param("typeCode")String typeCode, @Param("keyword")String keyword);

}